
<div>
	<table>
		<tr>
			<td>{if $msg_type==0}<img src="images/infomation.gif"/>
				{elseif $msg_type eq 1}
				<img src="images/warning.gif"/>
				{else}
				<img src="images/confirm.gif"/>
				{/if}
			</td>
			<td>{$msg_detail}</td>
		</tr>
		
		<tr>
			<td>{if $auto_redirect}{$lang.auto_redirection}{/if}</td>
		</tr>
		
		<tr><td><ul>
			{foreach from=$links item=link}
			<li><a href="{$link.href}" {if $link.target} target="{$link.target}"{/if}>{$link.text}</a></li>
			{/foreach}
		</ul></td></tr>
	</table>

</div>

{if $auto_redirect}
	<script language="javascript">
	<!--
	var seconds =3;
	var defaultUrl = "{$default_url}";

	{literal}
		onload = function()
		{
			if(defaultUrl == 'javascript:history.go(-1)' && window.history.length ==0)
			{
				document.getElementById('redirectionMsg').innerHTML = '';
				return;
			}

			window.setInterval(redirection,1000);
		}

		function redirection()
		{
			if(seconds <= 0)
			{
				window.clearInterval();
				return;
			}

			seconds --;
			document.getElementById('spanSeconds').innerHTML = seconds;

			if(seconds == 0)
			{
				window.clearInterval();
				location.href = defaultUrl;
			}
		}

	//-->
	</script>
	{/literal}
{/if}


